<div class="wrapper-md" ng-controller="rolePermissionCtrl">
    <div class="row">
        <div class="col-md-12">
            <div class="panel panel-default">
                <div class="panel-heading">角色权限管理</div>
        		<div class="row releOperatorWrap" style="padding: 0 15px;">
        			<div class="col-sm-3">
        				<div class="form-group">
							<h3>账号</h3>
							<select name="role" class="form-control" ng-options="x.roleName for x in roles" ng-model="selectedRole" ng-disabled="true" ng-change="changeRole(selectedRole)"></select>
						</div>
        			</div>
        			<div class="col-sm-9">
        				
        				<ul class="role_ul">
        					<li ng-if="moduleDatas.length==0">该角色没有权限数据</li>
        					<li ng-repeat="m in moduleDatas" ng-class="moduleLtemClass($index)" ng-click="moduleLtemactive($index)">
        						<a href="javascript:;">
        							<div class="checkBar" ng-click="checkBoxMk(m)" ng-class="anniuClass(m.menuVo.isSelected)">
										<input class='checkInput' type='checkbox'>
										<label class='checkBtn'><span class="checkBtnShow"></span></label>
									</div>
        							{{m.menuVo.menuName}}
        						</a>
        						<ul ng-if="m.childList.length==0">
									<li>该模块没有菜单</li>
								</ul>
        						<ul ng-if="m.childList.length!=0">
        							<li ng-repeat="c in m.childList">
        								<a href="javascript:;" class="menuBg">
        									<div class="checkBar" ng-click="checkBoxCd(m.menuVo,c.menuVo)" ng-class="anniuClass(c.menuVo.isSelected)">
												<input class='checkInput' type='checkbox'>
												<label class='checkBtn'><span class="checkBtnShow"></span></label>
											</div>
        									{{c.menuVo.menuName}}
        								</a>
        								<ul ng-if="c.menuVo.menuMethods.length==0">
        									<li>该菜单没有方法</li>
        								</ul>
        								<ul ng-if="c.menuVo.menuMethods.length!=0" class="fnBar">
        									<li ng-repeat="f in c.menuVo.menuMethods">
        										<a href="javascript:;">
        											<div class="checkBar" ng-click="checkBoxFn(m.menuVo,c.menuVo,f)" ng-class="anniuClass(f.isSelected)">
														<input class='checkInput' type='checkbox'>
														<label class='checkBtn'><span class="checkBtnShow"></span></label>
													</div>
        											{{f.methodName}}
        										</a>
        									</li>
        								</ul>
        							</li>
        						</ul>
        					</li>
        				</ul>
        				
        			</div>
        		</div>
            </div>
        </div>
    </div>
</div>
